package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishMapper {
    void insert(Dish dish);


    Page<DishVO> page(DishPageQueryDTO dishPageQueryDTO);


    void updateStatus(Dish dish);




    Dish findById(Long id);

    void delete(List<Long> ids);

    @Select("select * from dish where id = #{id}")
    Dish getById(Long id);

    void updateDish(Dish dish);
}
